package com.mindata.blockchain.socket.raft.server;

import com.mindata.blockchain.common.RaftConf;

public class RaftStateMachineContainer {
    public static RaftStateMachine getInstance(String raftDir){
        if(RaftConf.isLevelDB){
            return new RaftStateMachineLevelDB(raftDir);
        }
        return new RaftStateMachineRocksDB(raftDir);
    }
}
